import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login.vue'
import myinfo from '../views/myinfo.vue'
import find from '../views/find.vue'
import shuati from '../views/shuati.vue'




Vue.use(VueRouter)


const routes = [
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/myinfo',
    name: 'myinfo',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: myinfo
  }
  ,
  {
    path: '/find',
    name: 'find',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: find
  }
  ,
  {
    path: '/shuati',
    name: 'shuati',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: shuati
  }
]


const router = new VueRouter({
  routes
})


export default router